package com.neusoft.feign.service;

import com.neusfot.domain.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("eureka-client-user")
public interface UserService {

    @RequestMapping(value = "/findStudent.do",method = RequestMethod.GET)
    public Student findStudent();


    @RequestMapping(value = "/findStu.do/{id}",method = RequestMethod.GET)
    public Student findStudentByID(@PathVariable("id") Integer id);
}
